3.5.89 \(\int (a+a \sin (e+f x))^2 (c+d \sin (e+f x))^{5/2} \, dx\) [489]

Optimal. Leaf size=378 \[ \frac {4 a^2 \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{315 d f}+\frac {4 a^2 \left (5 c (c-9 d)-56 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{315 d f}+\frac {4 a^2 (c-9 d) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{63 d f}-\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{9 d f}-\frac {4 a^2 \left (5 c^4-45 c^3 d-381 c^2 d^2-435 c d^3-168 d^4\right ) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{315 d^2 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {4 a^2 \left (c^2-d^2\right ) \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right ) F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{315 d^2 f \sqrt {c+d \sin (e+f x)}} \]

[Out]

4/315*a^2*(5*c*(c-9*d)-56*d^2)*cos(f*x+e)*(c+d*sin(f*x+e))^(3/2)/d/f+4/63*a^2*(c-9*d)*cos(f*x+e)*(c+d*sin(f*x+
e))^(5/2)/d/f-2/9*a^2*cos(f*x+e)*(c+d*sin(f*x+e))^(7/2)/d/f+4/315*a^2*(5*c^3-45*c^2*d-141*c*d^2-75*d^3)*cos(f*
x+e)*(c+d*sin(f*x+e))^(1/2)/d/f+4/315*a^2*(5*c^4-45*c^3*d-381*c^2*d^2-435*c*d^3-168*d^4)*(sin(1/2*e+1/4*Pi+1/2
*f*x)^2)^(1/2)/sin(1/2*e+1/4*Pi+1/2*f*x)*EllipticE(cos(1/2*e+1/4*Pi+1/2*f*x),2^(1/2)*(d/(c+d))^(1/2))*(c+d*sin
(f*x+e))^(1/2)/d^2/f/((c+d*sin(f*x+e))/(c+d))^(1/2)-4/315*a^2*(c^2-d^2)*(5*c^3-45*c^2*d-141*c*d^2-75*d^3)*(sin
(1/2*e+1/4*Pi+1/2*f*x)^2)^(1/2)/sin(1/2*e+1/4*Pi+1/2*f*x)*EllipticF(cos(1/2*e+1/4*Pi+1/2*f*x),2^(1/2)*(d/(c+d)
)^(1/2))*((c+d*sin(f*x+e))/(c+d))^(1/2)/d^2/f/(c+d*sin(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.44, antiderivative size = 378, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {2842, 2832, 2831, 2742, 2740, 2734, 2732} \begin {gather*} \frac {4 a^2 \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{315 d f}+\frac {4 a^2 \left (c^2-d^2\right ) \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}} F\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{315 d^2 f \sqrt {c+d \sin (e+f x)}}-\frac {4 a^2 \left (5 c^4-45 c^3 d-381 c^2 d^2-435 c d^3-168 d^4\right ) \sqrt {c+d \sin (e+f x)} E\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{315 d^2 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {4 a^2 \left (5 c (c-9 d)-56 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{315 d f}-\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{9 d f}+\frac {4 a^2 (c-9 d) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{63 d f} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + a*Sin[e + f*x])^2*(c + d*Sin[e + f*x])^(5/2),x]

[Out]

(4*a^2*(5*c^3 - 45*c^2*d - 141*c*d^2 - 75*d^3)*Cos[e + f*x]*Sqrt[c + d*Sin[e + f*x]])/(315*d*f) + (4*a^2*(5*c*
(c - 9*d) - 56*d^2)*Cos[e + f*x]*(c + d*Sin[e + f*x])^(3/2))/(315*d*f) + (4*a^2*(c - 9*d)*Cos[e + f*x]*(c + d*
Sin[e + f*x])^(5/2))/(63*d*f) - (2*a^2*Cos[e + f*x]*(c + d*Sin[e + f*x])^(7/2))/(9*d*f) - (4*a^2*(5*c^4 - 45*c
^3*d - 381*c^2*d^2 - 435*c*d^3 - 168*d^4)*EllipticE[(e - Pi/2 + f*x)/2, (2*d)/(c + d)]*Sqrt[c + d*Sin[e + f*x]
])/(315*d^2*f*Sqrt[(c + d*Sin[e + f*x])/(c + d)]) + (4*a^2*(c^2 - d^2)*(5*c^3 - 45*c^2*d - 141*c*d^2 - 75*d^3)
*EllipticF[(e - Pi/2 + f*x)/2, (2*d)/(c + d)]*Sqrt[(c + d*Sin[e + f*x])/(c + d)])/(315*d^2*f*Sqrt[c + d*Sin[e
+ f*x]])

Rule 2732

Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[2*(Sqrt[a + b]/d)*EllipticE[(1/2)*(c - Pi/2
+ d*x), 2*(b/(a + b))], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]

Rule 2734

Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Dist[Sqrt[a + b*Sin[c + d*x]]/Sqrt[(a + b*Sin[c +
 d*x])/(a + b)], Int[Sqrt[a/(a + b) + (b/(a + b))*Sin[c + d*x]], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 -
 b^2, 0] &&  !GtQ[a + b, 0]

Rule 2740

Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/(d*Sqrt[a + b]))*EllipticF[(1/2)*(c - P
i/2 + d*x), 2*(b/(a + b))], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]

Rule 2742

Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Dist[Sqrt[(a + b*Sin[c + d*x])/(a + b)]/Sqrt[a
+ b*Sin[c + d*x]], Int[1/Sqrt[a/(a + b) + (b/(a + b))*Sin[c + d*x]], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a
^2 - b^2, 0] &&  !GtQ[a + b, 0]

Rule 2831

Int[((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])/Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]], x_Symbol] :> Dist[(b*c
 - a*d)/b, Int[1/Sqrt[a + b*Sin[e + f*x]], x], x] + Dist[d/b, Int[Sqrt[a + b*Sin[e + f*x]], x], x] /; FreeQ[{a
, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]

Rule 2832

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(-d
)*Cos[e + f*x]*((a + b*Sin[e + f*x])^m/(f*(m + 1))), x] + Dist[1/(m + 1), Int[(a + b*Sin[e + f*x])^(m - 1)*Sim
p[b*d*m + a*c*(m + 1) + (a*d*m + b*c*(m + 1))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[
b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && GtQ[m, 0] && IntegerQ[2*m]

Rule 2842

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim
p[(-b^2)*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m - 2)*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(m + n))), x] + Dist[1/(
d*(m + n)), Int[(a + b*Sin[e + f*x])^(m - 2)*(c + d*Sin[e + f*x])^n*Simp[a*b*c*(m - 2) + b^2*d*(n + 1) + a^2*d
*(m + n) - b*(b*c*(m - 1) - a*d*(3*m + 2*n - 2))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] &
& NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[m, 1] &&  !LtQ[n, -1] && (IntegersQ[2*m,
2*n] || IntegerQ[m + 1/2] || (IntegerQ[m] && EqQ[c, 0]))

Rubi steps

\begin {align*} \int (a+a \sin (e+f x))^2 (c+d \sin (e+f x))^{5/2} \, dx &=-\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{9 d f}+\frac {2 \int \left (8 a^2 d-a^2 (c-9 d) \sin (e+f x)\right ) (c+d \sin (e+f x))^{5/2} \, dx}{9 d}\\ &=\frac {4 a^2 (c-9 d) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{63 d f}-\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{9 d f}+\frac {4 \int (c+d \sin (e+f x))^{3/2} \left (\frac {3}{2} a^2 d (17 c+15 d)-\frac {1}{2} a^2 \left (5 c (c-9 d)-56 d^2\right ) \sin (e+f x)\right ) \, dx}{63 d}\\ &=\frac {4 a^2 \left (5 c (c-9 d)-56 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{315 d f}+\frac {4 a^2 (c-9 d) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{63 d f}-\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{9 d f}+\frac {8 \int \sqrt {c+d \sin (e+f x)} \left (6 a^2 d \left (10 c^2+15 c d+7 d^2\right )-\frac {3}{4} a^2 \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right ) \sin (e+f x)\right ) \, dx}{315 d}\\ &=\frac {4 a^2 \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{315 d f}+\frac {4 a^2 \left (5 c (c-9 d)-56 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{315 d f}+\frac {4 a^2 (c-9 d) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{63 d f}-\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{9 d f}+\frac {16 \int \frac {\frac {3}{8} a^2 d \left (235 c^3+405 c^2 d+309 c d^2+75 d^3\right )-\frac {3}{8} a^2 \left (5 c^4-45 c^3 d-381 c^2 d^2-435 c d^3-168 d^4\right ) \sin (e+f x)}{\sqrt {c+d \sin (e+f x)}} \, dx}{945 d}\\ &=\frac {4 a^2 \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{315 d f}+\frac {4 a^2 \left (5 c (c-9 d)-56 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{315 d f}+\frac {4 a^2 (c-9 d) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{63 d f}-\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{9 d f}+\frac {\left (2 a^2 \left (c^2-d^2\right ) \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right )\right ) \int \frac {1}{\sqrt {c+d \sin (e+f x)}} \, dx}{315 d^2}-\frac {\left (2 a^2 \left (5 c^4-45 c^3 d-381 c^2 d^2-435 c d^3-168 d^4\right )\right ) \int \sqrt {c+d \sin (e+f x)} \, dx}{315 d^2}\\ &=\frac {4 a^2 \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{315 d f}+\frac {4 a^2 \left (5 c (c-9 d)-56 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{315 d f}+\frac {4 a^2 (c-9 d) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{63 d f}-\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{9 d f}-\frac {\left (2 a^2 \left (5 c^4-45 c^3 d-381 c^2 d^2-435 c d^3-168 d^4\right ) \sqrt {c+d \sin (e+f x)}\right ) \int \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}} \, dx}{315 d^2 \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {\left (2 a^2 \left (c^2-d^2\right ) \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{\sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{315 d^2 \sqrt {c+d \sin (e+f x)}}\\ &=\frac {4 a^2 \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{315 d f}+\frac {4 a^2 \left (5 c (c-9 d)-56 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{315 d f}+\frac {4 a^2 (c-9 d) \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{63 d f}-\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{7/2}}{9 d f}-\frac {4 a^2 \left (5 c^4-45 c^3 d-381 c^2 d^2-435 c d^3-168 d^4\right ) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{315 d^2 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {4 a^2 \left (c^2-d^2\right ) \left (5 c^3-45 c^2 d-141 c d^2-75 d^3\right ) F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{315 d^2 f \sqrt {c+d \sin (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 1.41, size = 322, normalized size = 0.85 \begin {gather*} \frac {a^2 (1+\sin (e+f x))^2 \left (16 \left (-d^2 \left (235 c^3+405 c^2 d+309 c d^2+75 d^3\right ) F\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )+\left (5 c^4-45 c^3 d-381 c^2 d^2-435 c d^3-168 d^4\right ) \left ((c+d) E\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )-c F\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}-d (c+d \sin (e+f x)) \left (2 \left (20 c^3+1080 c^2 d+1671 c d^2+690 d^3\right ) \cos (e+f x)+2 d \left (-5 d (19 c+18 d) \cos (3 (e+f x))+\left (150 c^2+540 c d+259 d^2-35 d^2 \cos (2 (e+f x))\right ) \sin (2 (e+f x))\right )\right )\right )}{1260 d^2 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^4 \sqrt {c+d \sin (e+f x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + a*Sin[e + f*x])^2*(c + d*Sin[e + f*x])^(5/2),x]

[Out]

(a^2*(1 + Sin[e + f*x])^2*(16*(-(d^2*(235*c^3 + 405*c^2*d + 309*c*d^2 + 75*d^3)*EllipticF[(-2*e + Pi - 2*f*x)/
4, (2*d)/(c + d)]) + (5*c^4 - 45*c^3*d - 381*c^2*d^2 - 435*c*d^3 - 168*d^4)*((c + d)*EllipticE[(-2*e + Pi - 2*
f*x)/4, (2*d)/(c + d)] - c*EllipticF[(-2*e + Pi - 2*f*x)/4, (2*d)/(c + d)]))*Sqrt[(c + d*Sin[e + f*x])/(c + d)
] - d*(c + d*Sin[e + f*x])*(2*(20*c^3 + 1080*c^2*d + 1671*c*d^2 + 690*d^3)*Cos[e + f*x] + 2*d*(-5*d*(19*c + 18
*d)*Cos[3*(e + f*x)] + (150*c^2 + 540*c*d + 259*d^2 - 35*d^2*Cos[2*(e + f*x)])*Sin[2*(e + f*x)]))))/(1260*d^2*
f*(Cos[(e + f*x)/2] + Sin[(e + f*x)/2])^4*Sqrt[c + d*Sin[e + f*x]])

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1613\) vs. \(2(416)=832\).
time = 4.96, size = 1614, normalized size = 4.27

method result size
default \(\text {Expression too large to display}\) \(1614\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sin(f*x+e))^2*(c+d*sin(f*x+e))^(5/2),x,method=_RETURNVERBOSE)

[Out]

-2/315*a^2*(486*((c+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin(f*x+e)-1)*d/(c+d))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2)
*EllipticF(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))*d^6-10*((c+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin(f*
x+e)-1)*d/(c+d))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*EllipticE(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^
(1/2))*c^6-336*((c+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin(f*x+e)-1)*d/(c+d))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*
EllipticE(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))*d^6-224*c^2*d^4*sin(f*x+e)^2+210*c*d^5*sin(f*x+e
)^2+80*c^3*d^3*sin(f*x+e)+540*c^2*d^4*sin(f*x+e)+506*c*d^5*sin(f*x+e)-130*c*d^5*sin(f*x+e)^5-170*c^2*d^4*sin(f
*x+e)^4-360*c*d^5*sin(f*x+e)^4-80*c^3*d^3*sin(f*x+e)^3-540*c^2*d^4*sin(f*x+e)^3-376*c*d^5*sin(f*x+e)^3-5*c^4*d
^2*sin(f*x+e)^2-270*c^3*d^3*sin(f*x+e)^2-35*d^6*sin(f*x+e)^6-90*d^6*sin(f*x+e)^5-77*d^6*sin(f*x+e)^4-60*d^6*si
n(f*x+e)^3+112*d^6*sin(f*x+e)^2+150*d^6*sin(f*x+e)+150*c*d^5+5*c^4*d^2+270*c^3*d^3+394*c^2*d^4+772*((c+d*sin(f
*x+e))/(c-d))^(1/2)*(-(sin(f*x+e)-1)*d/(c+d))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*EllipticE(((c+d*sin(f*x+e)
)/(c-d))^(1/2),((c-d)/(c+d))^(1/2))*c^4*d^2+780*((c+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin(f*x+e)-1)*d/(c+d))^(1/2)
*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*EllipticE(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))*c^3*d^3-426*((c
+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin(f*x+e)-1)*d/(c+d))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*EllipticE(((c+d*si
n(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))*c^2*d^4-870*((c+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin(f*x+e)-1)*d/(c+d
))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*EllipticE(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))*c*d^5+1
0*((c+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin(f*x+e)-1)*d/(c+d))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*EllipticF(((c
+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))*c^5*d-570*((c+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin(f*x+e)-1)*d/(
c+d))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*EllipticF(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))*c^4*
d^2-1012*((c+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin(f*x+e)-1)*d/(c+d))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*Ellipt
icF(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))*c^3*d^3+84*((c+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin(f*x+e
)-1)*d/(c+d))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*EllipticF(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/
2))*c^2*d^4+1002*((c+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin(f*x+e)-1)*d/(c+d))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2
)*EllipticF(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))*c*d^5+90*((c+d*sin(f*x+e))/(c-d))^(1/2)*(-(sin
(f*x+e)-1)*d/(c+d))^(1/2)*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*EllipticE(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d
))^(1/2))*c^5*d)/d^3/cos(f*x+e)/(c+d*sin(f*x+e))^(1/2)/f

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^2*(c+d*sin(f*x+e))^(5/2),x, algorithm="maxima")

[Out]

integrate((a*sin(f*x + e) + a)^2*(d*sin(f*x + e) + c)^(5/2), x)

________________________________________________________________________________________

Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 0.20, size = 737, normalized size = 1.95 \begin {gather*} \frac {2 \, {\left (\sqrt {2} {\left (10 \, a^{2} c^{5} - 90 \, a^{2} c^{4} d - 57 \, a^{2} c^{3} d^{2} + 345 \, a^{2} c^{2} d^{3} + 591 \, a^{2} c d^{4} + 225 \, a^{2} d^{5}\right )} \sqrt {i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right ) + \sqrt {2} {\left (10 \, a^{2} c^{5} - 90 \, a^{2} c^{4} d - 57 \, a^{2} c^{3} d^{2} + 345 \, a^{2} c^{2} d^{3} + 591 \, a^{2} c d^{4} + 225 \, a^{2} d^{5}\right )} \sqrt {-i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right ) - 3 \, \sqrt {2} {\left (-5 i \, a^{2} c^{4} d + 45 i \, a^{2} c^{3} d^{2} + 381 i \, a^{2} c^{2} d^{3} + 435 i \, a^{2} c d^{4} + 168 i \, a^{2} d^{5}\right )} \sqrt {i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right )\right ) - 3 \, \sqrt {2} {\left (5 i \, a^{2} c^{4} d - 45 i \, a^{2} c^{3} d^{2} - 381 i \, a^{2} c^{2} d^{3} - 435 i \, a^{2} c d^{4} - 168 i \, a^{2} d^{5}\right )} \sqrt {-i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right )\right ) + 3 \, {\left (5 \, {\left (19 \, a^{2} c d^{4} + 18 \, a^{2} d^{5}\right )} \cos \left (f x + e\right )^{3} - {\left (5 \, a^{2} c^{3} d^{2} + 270 \, a^{2} c^{2} d^{3} + 489 \, a^{2} c d^{4} + 240 \, a^{2} d^{5}\right )} \cos \left (f x + e\right ) + {\left (35 \, a^{2} d^{5} \cos \left (f x + e\right )^{3} - 3 \, {\left (25 \, a^{2} c^{2} d^{3} + 90 \, a^{2} c d^{4} + 49 \, a^{2} d^{5}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {d \sin \left (f x + e\right ) + c}\right )}}{945 \, d^{3} f} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^2*(c+d*sin(f*x+e))^(5/2),x, algorithm="fricas")

[Out]

2/945*(sqrt(2)*(10*a^2*c^5 - 90*a^2*c^4*d - 57*a^2*c^3*d^2 + 345*a^2*c^2*d^3 + 591*a^2*c*d^4 + 225*a^2*d^5)*sq
rt(I*d)*weierstrassPInverse(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27*(8*I*c^3 - 9*I*c*d^2)/d^3, 1/3*(3*d*cos(f*x + e) -
 3*I*d*sin(f*x + e) - 2*I*c)/d) + sqrt(2)*(10*a^2*c^5 - 90*a^2*c^4*d - 57*a^2*c^3*d^2 + 345*a^2*c^2*d^3 + 591*
a^2*c*d^4 + 225*a^2*d^5)*sqrt(-I*d)*weierstrassPInverse(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27*(-8*I*c^3 + 9*I*c*d^2)
/d^3, 1/3*(3*d*cos(f*x + e) + 3*I*d*sin(f*x + e) + 2*I*c)/d) - 3*sqrt(2)*(-5*I*a^2*c^4*d + 45*I*a^2*c^3*d^2 +
381*I*a^2*c^2*d^3 + 435*I*a^2*c*d^4 + 168*I*a^2*d^5)*sqrt(I*d)*weierstrassZeta(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27
*(8*I*c^3 - 9*I*c*d^2)/d^3, weierstrassPInverse(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27*(8*I*c^3 - 9*I*c*d^2)/d^3, 1/3
*(3*d*cos(f*x + e) - 3*I*d*sin(f*x + e) - 2*I*c)/d)) - 3*sqrt(2)*(5*I*a^2*c^4*d - 45*I*a^2*c^3*d^2 - 381*I*a^2
*c^2*d^3 - 435*I*a^2*c*d^4 - 168*I*a^2*d^5)*sqrt(-I*d)*weierstrassZeta(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27*(-8*I*c
^3 + 9*I*c*d^2)/d^3, weierstrassPInverse(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27*(-8*I*c^3 + 9*I*c*d^2)/d^3, 1/3*(3*d*
cos(f*x + e) + 3*I*d*sin(f*x + e) + 2*I*c)/d)) + 3*(5*(19*a^2*c*d^4 + 18*a^2*d^5)*cos(f*x + e)^3 - (5*a^2*c^3*
d^2 + 270*a^2*c^2*d^3 + 489*a^2*c*d^4 + 240*a^2*d^5)*cos(f*x + e) + (35*a^2*d^5*cos(f*x + e)^3 - 3*(25*a^2*c^2
*d^3 + 90*a^2*c*d^4 + 49*a^2*d^5)*cos(f*x + e))*sin(f*x + e))*sqrt(d*sin(f*x + e) + c))/(d^3*f)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} a^{2} \left (\int c^{2} \sqrt {c + d \sin {\left (e + f x \right )}}\, dx + \int 2 c^{2} \sqrt {c + d \sin {\left (e + f x \right )}} \sin {\left (e + f x \right )}\, dx + \int c^{2} \sqrt {c + d \sin {\left (e + f x \right )}} \sin ^{2}{\left (e + f x \right )}\, dx + \int d^{2} \sqrt {c + d \sin {\left (e + f x \right )}} \sin ^{2}{\left (e + f x \right )}\, dx + \int 2 d^{2} \sqrt {c + d \sin {\left (e + f x \right )}} \sin ^{3}{\left (e + f x \right )}\, dx + \int d^{2} \sqrt {c + d \sin {\left (e + f x \right )}} \sin ^{4}{\left (e + f x \right )}\, dx + \int 2 c d \sqrt {c + d \sin {\left (e + f x \right )}} \sin {\left (e + f x \right )}\, dx + \int 4 c d \sqrt {c + d \sin {\left (e + f x \right )}} \sin ^{2}{\left (e + f x \right )}\, dx + \int 2 c d \sqrt {c + d \sin {\left (e + f x \right )}} \sin ^{3}{\left (e + f x \right )}\, dx\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))**2*(c+d*sin(f*x+e))**(5/2),x)

[Out]

a**2*(Integral(c**2*sqrt(c + d*sin(e + f*x)), x) + Integral(2*c**2*sqrt(c + d*sin(e + f*x))*sin(e + f*x), x) +
 Integral(c**2*sqrt(c + d*sin(e + f*x))*sin(e + f*x)**2, x) + Integral(d**2*sqrt(c + d*sin(e + f*x))*sin(e + f
*x)**2, x) + Integral(2*d**2*sqrt(c + d*sin(e + f*x))*sin(e + f*x)**3, x) + Integral(d**2*sqrt(c + d*sin(e + f
*x))*sin(e + f*x)**4, x) + Integral(2*c*d*sqrt(c + d*sin(e + f*x))*sin(e + f*x), x) + Integral(4*c*d*sqrt(c +
d*sin(e + f*x))*sin(e + f*x)**2, x) + Integral(2*c*d*sqrt(c + d*sin(e + f*x))*sin(e + f*x)**3, x))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^2*(c+d*sin(f*x+e))^(5/2),x, algorithm="giac")

[Out]

integrate((a*sin(f*x + e) + a)^2*(d*sin(f*x + e) + c)^(5/2), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (a+a\,\sin \left (e+f\,x\right )\right )}^2\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{5/2} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*sin(e + f*x))^2*(c + d*sin(e + f*x))^(5/2),x)

[Out]

int((a + a*sin(e + f*x))^2*(c + d*sin(e + f*x))^(5/2), x)

________________________________________________________________________________________